<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>工序刷卡</title>

    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

    <!--调用扫一扫功能-->
    <script  src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.6.7/jquery.min.js" ></script>

    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.6.7/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.6.7/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.6.7/demo/demo.css">
    <script type="text/javascript" src="jquery-easyui-1.6.7/jquery.easyui.min.js"></script>

    <link type="text/css" rel="stylesheet" href="css/PayByCard.css">
    <script type="text/javascript" src="js/PayByCard.js" ></script>


</head>

<body>

<div class="main" style="background-color:#C0C0C0">
    <div class="d_mainGH" style="float: left;background-color: white">
        <label class="main_GH"  style="font-size: 18px;">缸号：</label>
        <input type="text" id="gh"  style="border: 1px salmon;height: 80%;width: 80%;
         font-size: 20px" readonly unselectable="on">
    </div>
    <div class="d_main01" style="background-color: white">
        <div class="d_main01_left">
            <label class="lab01" >客户：</label>
            <input class="text01" id="client" type="text" readonly unselectable="on"
            style="" >
            <label class="lab03">色号：</label>
            <input class="text03" id="sehao" type="text" readonly unselectable="on">
            <label class="lab05">颜色：</label>
            <input class="text05" id="color" type="text" readonly unselectable="on">
            <label class="lab07">计划匹：</label>
            <input class="text07" id="planps" type="text" readonly unselectable="on">
        </div>
        <div class="d_main01_right">
            <label class="lab02">品名：</label>
            <input class="text02" id="pinming" type="text" readonly unselectable="on">
            <label class="lab04">门幅：</label>
            <input class="text04" id="menfu" type="text" readonly unselectable="on">
            <label class="lab06">订单号：</label>
            <input class="text06" id="dingdanhao" type="text" readonly unselectable="on">
            <label class="lab08">计划重：</label>
            <input class="text08" id="planqty" type="text" readonly unselectable="on">
        </div>
    </div>
    <div class="d_mainDetail" style="background-color: white">
        <input type="button" value="查询进度" onclick="getProcessJD();$('#Z').window('open')"
               style="height: 100%;width: 100%;font-size: 20px;
               background-color: #CCFFFF; border-radius: 1px; ">
    </div>
    <div class="d_main02" style="background-color: white">
        <div class="d_main02_left">
            <input class="but02_1" type="button" value="班组"
                   onclick="$('#C').window('open')">
            <input class="text2_1" id="class" type="text" readonly unselectable="on">
            <input class="but02_2" type="button" value="匹数" id="PS"
                   onclick="getjudgeGJPS(1);$('#w').window('open')">
            <input class="text2_2" id="Factps" type="text" readonly unselectable="on">
            <input class="but02_3" type="button" value="公斤"  id="GJ"
                   onclick="getjudgeGJPS(2);$('#w').window('open')">
            <input class="text2_3" id="Factqty" type="text" readonly unselectable="on">

        </div>
        <div class="d_main02_right">
            <input class="but02_4" type="button" value="车号" id="CH"
                   onclick="$('#X').window('open')">
            <input class="text2_4" id="chehao" type="text" readonly unselectable="on">
            <input class="but02_5" type="button" value="机台" id="JT"
                   onclick="$('#T').window('open')">
            <input class="text2_5" id="jth" type="text" readonly unselectable="on">
            <input class="but02_6" type="button" value="比例" id="BL"
                   onclick="$('#Y').window('open')">
            <input class="text2_6" id="ratio" type="text" readonly unselectable="on">
        </div>
    </div>
    <div class="d_main03" style="background-color: white">
        <div class="d_main03_1">
        <input onclick="saveProcess()" type="button" style="background-color: red" class="d_detail03_1 buttom" value="保存">
        <input onclick="getProcess1()" type="button" id="process1" class="d_detail03_2 buttom"  value="备用">
        </div>
        <div class="d_main03_2">
            <div>
                <input onclick="wxScan()" type="button" class="d_detail03_3 buttom" value="缸单扫描">
            </div>
            <div>
                <input onclick="getProcess2()" type="button" id="process2" class="d_detail03_2 buttom"  value="备用">
                <input onclick="getProcess3()" type="button" id="process3" class="d_detail03_2 buttom"  value="备用">
            </div>
        </div>
    </div>
</div>

<!--匹数公斤的数字键盘-->
<div id="w" class="easyui-window" title="录入键盘"
     style="width:300px;height:520px;padding:10px;"
     data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,closable:false">

    <label style="font-size: 25px;">录入值：</label>
    <input id="textNumber01" type="text" style="font-size: 30px; width: 150px" readonly unselectable="on">
    <br>
    <input onclick="getnumberStr('1')" class="numberbutton" type="button" value="1">
    <input onclick="getnumberStr('2')" class="numberbutton" type="button" value="2">
    <input onclick="getnumberStr('3')" class="numberbutton" type="button" value="3">
    <input onclick="getnumberStr('4')" class="numberbutton" type="button" value="4">
    <input onclick="getnumberStr('5')" class="numberbutton" type="button" value="5">
    <input onclick="getnumberStr('6')" class="numberbutton" type="button" value="6">
    <input onclick="getnumberStr('7')" class="numberbutton" type="button" value="7">
    <input onclick="getnumberStr('8')" class="numberbutton" type="button" value="8">
    <input onclick="getnumberStr('9')" class="numberbutton" type="button" value="9">
    <input onclick="getnumberStr('0')" class="numberbutton" type="button" value="0">
    <input onclick="getnumberStr('.')" class="numberbutton" type="button" value=".">
    <input onclick="cleanupnumber01()" class="numberbutton" type="button" value="清除">  <!--style="visibility:hidden"-->

    <input onclick="cancel01()" class="numberbutton02" type="button" value="取消">
    <input onclick="determine01()" class="numberbutton01" type="button" value="确定">
</div>

<!--车号的英文加数字键盘-->
<div id="X" class="easyui-window" title="录入车号"
     style="width:300px;height:520px;padding:10px;"
     data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,closable:false">

    <label style="font-size: 25px;">录入值：</label>
    <input id="textNumber02" type="text" style="font-size: 30px; width: 150px" readonly unselectable="on">
    <br>
    <input onclick="getnumberStrX('1')" class="numberbuttonX" type="button" value="1">
    <input onclick="getnumberStrX('2')" class="numberbuttonX" type="button" value="2">
    <input onclick="getnumberStrX('3')" class="numberbuttonX" type="button" value="3">
    <input onclick="getnumberStrX('4')" class="numberbuttonX" type="button" value="4">
    <input onclick="getnumberStrX('5')" class="numberbuttonX" type="button" value="5">
    <input onclick="getnumberStrX('6')" class="numberbuttonX" type="button" value="6">
    <input onclick="getnumberStrX('7')" class="numberbuttonX" type="button" value="7">
    <input onclick="getnumberStrX('8')" class="numberbuttonX" type="button" value="8">
    <input onclick="getnumberStrX('9')" class="numberbuttonX" type="button" value="9">
    <input onclick="getnumberStrX('0')" class="numberbuttonX" type="button" value="0">
    <input onclick="getnumberStrX('A')" class="numberbuttonX" type="button" value="A">
    <input onclick="getnumberStrX('B')" class="numberbuttonX" type="button" value="B">
    <input onclick="getnumberStrX('C')" class="numberbuttonX" type="button" value="C">
    <input onclick="getnumberStrX('D')" class="numberbuttonX" type="button" value="D">
    <input onclick="getnumberStrX('E')" class="numberbuttonX" type="button" value="E">
    <input onclick="getnumberStrX('F')" class="numberbuttonX" type="button" value="F">

    <input onclick="cleanupnumberX()" class="numberbutton03X" type="button" value="清除">  <!--style="visibility:hidden"-->
    <input onclick="cancelX()" class="numberbutton02X" type="button" value="取消">
    <input onclick="determineX()" class="numberbutton01X" type="button" value="确定">
</div>

<!--比例键盘-->
<div id="Y" class="easyui-window" title="录入比例"
     style="width:300px;height:450px;padding:10px;"
     data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,closable:false">

    <label style="font-size: 25px;">录入值：</label>
    <input id="textNumber03" type="text" style="font-size: 30px; width: 150px" readonly unselectable="on">
    <br><br>
    <input onclick="getnumberStrY('1')" class="numberbuttonY" type="button" value="1">
    <input onclick="getnumberStrY('2')" class="numberbuttonY" type="button" value="2">
    <input onclick="getnumberStrY('3')" class="numberbuttonY" type="button" value="3">
    <input onclick="getnumberStrY('4')" class="numberbuttonY" type="button" value="4">
    <input onclick="getnumberStrY('5')" class="numberbuttonY" type="button" value="5">
    <input onclick="getnumberStrY('6')" class="numberbuttonY" type="button" value="6">
    <input onclick="getnumberStrY('7')" class="numberbuttonY" type="button" value="7">
    <input onclick="getnumberStrY('8')" class="numberbuttonY" type="button" value="8">
    <input onclick="getnumberStrY('9')" class="numberbuttonY" type="button" value="9">
    <input onclick="getnumberStrY('10')" class="numberbuttonY" type="button" value="10">


    <input onclick="cancelY()" class="numberbuttonY" type="button" value="取消">
    <input onclick="determineY()" class="numberbuttonY" type="button" value="确定">
</div>

<div id="Z" class="easyui-window" title="工序进度"
     style="width:300px;height:450px;padding:10px;"
     data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,closable:true,maximized:true">

    <div class="d_detail02" style="width: 100%;height: 100%">
        <table id="waterdetai" class="easyui-datagrid" title="" style="width:100%;height:100%;"
               data-options="rownumbers:true,singleSelect:true,method:'get',
               toolbar:'#tb',footer:'#ft'">

            <thead data-options="frozen:true">
            <tr>
                <th  data-options="field:'B_ProcessName',width:80,align:'center'">工序名称</th>

            </tr>
            </thead>
            <thead>
            <tr>
                <th data-options="field:'B_Class',width:70,align:'center'">班次</th>
                <th data-options="field:'b_ratio',width:70,align:'center'">比例</th>
                <th data-options="field:'b_pishu',width:70,align:'center'">匹数</th>
                <th data-options="field:'B_qty',width:70,align:'center'">公斤</th>
                <th data-options="field:'B_craft',width:70,align:'center'">车号</th>
                <th data-options="field:'B_JTH',width:70,align:'center'">机台号</th>
                <th data-options="field:'B_Date',width:100,align:'left'">刷卡时间</th>
            </tr>
            </thead>
        </table>
    </div>

</div>

<div id="C" class="easyui-window" title="班次员工"
     style="width:300px;height:450px;padding:10px;"
     data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,
     closable:true,maximized:true,closed:true">

    <div class="d_detail02" style="width: 100%;height: 85%">
        <table id="classpeople" class="easyui-datagrid" title="" style="width:100%;height:100%;"
               data-options="rownumbers:true,singleSelect:true,method:'get',
               toolbar:'#tb',footer:'#ft'">
            <thead>
            <tr>
                <th data-options="field:'b_classname',width:120,align:'center'">班次</th>
                <th data-options="field:'b_people',width:100,align:'center'">员工</th>
                <th hidden="hidden" data-options="field:'b_id',width:10,align:'center'">主键</th>

            </tr>
            </thead>
        </table>
    </div>
    <div style="width: 100%;height: 15%">
        <input type="button" onclick="deleteclasspeople()"
               style="width: 50%;height: 100%;float: left;font-size: 20px" value="删除">
        <input type="button" onclick="$('#C1').window('open')"
               style="width: 50%;height: 100%;float: left;font-size: 20px" value="新增">
    </div>

</div>

<!--录入员工编号-->
<div id="C1" class="easyui-window" title="录入员工编号"
     style="width:300px;height:520px;padding:10px;"
     data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,closable:false,closed:true">

    <label style="font-size: 25px;">录入值：</label>
    <input id="textNumberC1" type="text" style="font-size: 30px; width: 150px" readonly unselectable="on">
    <br>
    <input onclick="getnumberStrC1('1')" class="numberbutton" type="button" value="1">
    <input onclick="getnumberStrC1('2')" class="numberbutton" type="button" value="2">
    <input onclick="getnumberStrC1('3')" class="numberbutton" type="button" value="3">
    <input onclick="getnumberStrC1('4')" class="numberbutton" type="button" value="4">
    <input onclick="getnumberStrC1('5')" class="numberbutton" type="button" value="5">
    <input onclick="getnumberStrC1('6')" class="numberbutton" type="button" value="6">
    <input onclick="getnumberStrC1('7')" class="numberbutton" type="button" value="7">
    <input onclick="getnumberStrC1('8')" class="numberbutton" type="button" value="8">
    <input onclick="getnumberStrC1('9')" class="numberbutton" type="button" value="9">
    <input onclick="getnumberStrC1('0')" class="numberbutton" type="button" value="0">
    <input onclick="getnumberStrC1('.')" class="numberbutton" type="button" value=".">
    <input onclick="cleanupnumberC1()" class="numberbutton" type="button" value="清除">  <!--style="visibility:hidden"-->

    <input onclick="cancelC1()" class="numberbutton02" type="button" value="取消">
    <input onclick="determineC1()" class="numberbutton01" type="button" value="确定">
</div>

<!--机台号选择-->
<div id="T" class="easyui-window" title="录入员工编号"
     style="width:300px;height:520px;padding:10px;"
     data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,
     closable:true,maximized:true,closed:true">

    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">
    <input onclick="" class="buttonJTH" type="button" value="备用">  <!--style="visibility:hidden"-->

</div>

</body>


<script>
    $(".buttonJTH").click(
        function() {
            $('#jth').val($('.buttonJTH').eq($(this).index()).val().toString());
            //alert($('.buttom').eq($(this).index()).val().toString());
            $('#T').window('close')
        })

</script>
</html>